package com.qlshouyu.len31.controller;

import com.qlshouyu.len31.config.MysqlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 高露 邮箱：<a href="egojit@qq.com">egojit@qq.com</a>
 * @since 2019-10-20 07:57
 */
@RestController
@RequestMapping("/api/index")
public class IndexController {

    @Autowired
    private MysqlConfig config;


    @GetMapping
    public String index(){
        System.out.println("----"+config.getName());
        return config.getName();
    }
}
